/**
 * 
 */
package com.zte.claa.inficombo.csa.app.service.logicresdev.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zte.claa.inficombo.csa.app.dao.mysql.impl.LogicResDevMapper;
import com.zte.claa.inficombo.csa.app.service.logicresdev.LogicResDevService;
import com.zte.claa.inficombo.share.model.logicresdev.LogicResDev;
import com.zte.claa.inficombo.share.model.logicresdev.LogicResDevQryCondition;

/**
 * @author zhanghao
 *
 */
@Service
public class LogicResDevServiceImpl implements LogicResDevService {

	@Autowired
	private LogicResDevMapper mapper;
	/* (non-Javadoc)
	 * @see com.zte.claa.inficombo.app.framework.service.logicresdev.LogicResDevService#getByDev(java.lang.String)
	 */
	@Override
	public List<LogicResDev> getByDev(String deveui) throws Exception {
		return mapper.selectByDeveui(deveui);
	}

	/* (non-Javadoc)
	 * @see com.zte.claa.inficombo.app.framework.service.logicresdev.LogicResDevService#getByRes(java.lang.String)
	 */
	@Override
	public List<LogicResDev> getByRes(String resid) throws Exception {
		return mapper.selectByRes(resid);
	}

	/* (non-Javadoc)
	 * @see com.zte.claa.inficombo.app.framework.service.logicresdev.LogicResDevService#getByKey(java.lang.String, java.lang.String)
	 */
	@Override
	public LogicResDev getByKey(String deveui, String resid) throws Exception {
		return mapper.selectByKey(deveui, resid);
	}

	/* (non-Javadoc)
	 * @see com.zte.claa.inficombo.app.framework.service.logicresdev.LogicResDevService#getByCondition(com.zte.claa.inficombo.app.model.logicresdev.LogicResDevQryCondition)
	 */
	@Override
	public List<LogicResDev> getByCondition(LogicResDevQryCondition cdt) throws Exception {
		return mapper.selectByCondition(cdt);
	}

}
